package cn.com.xuxiaowei.wechatoffiaccountexample;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.server.authorization.http.WeChatOffiaccountAuthorizeHttpFilter;
import org.springframework.security.oauth2.server.authorization.http.WeChatOffiaccountCodeHttpFilter;

@Configuration
public class WechatOffiaccountConfiguration {

//    @Autowired
//    public void setWeChatOffiaccountAuthorizeHttpFilter(WeChatOffiaccountAuthorizeHttpFilter weChatOffiaccountAuthorizeHttpFilter) {
//        // 自定义微信授权重定向的路径前缀
//        weChatOffiaccountAuthorizeHttpFilter.setPrefixUrl("/a");
//    }
//
//    @Autowired
//    public void setWeChatOffiaccountCodeHttpFilter(WeChatOffiaccountCodeHttpFilter weChatOffiaccountCodeHttpFilter) {
//        // 自定义使用code换取微信Token的路径前缀
//        weChatOffiaccountCodeHttpFilter.setPrefixUrl("/b");
//    }

}
